home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 23.zip / BS1 part 23 / Superbase 4 ser 12C00584^1.adf / Trading / REPDEM.SBP < prev    next >
Text File  |  1991-03-13  |  3KB  |  79 lines

  1. SBP
  2.  ÿ½  REPDEM
  3.  ÿ½  You can use the Maximize
  4.  ÿ½  up arrow to bring the program 
  5.  ÿ½  editor window to full screen
  6.  ÿ½  size, and the vertical scroll
  7.  ÿ½  bar to view the entire program.
  8.  
  9.  ÿ½  With the exceptions noted below, the following DML program code 
  10.  ÿ½  is generated automatically when you save the report form described 
  11.  ÿ½  in the Form Designer section of the Trial Pack booklet. The 
  12.  ÿ½  exceptions are the addition of these REM statements, the addition 
  13.  ÿ½  of the NUMBASE command, and the removal of the path from the 
  14.  ÿ½  filename in the OPEN FILE command.
  15.  
  16.  ÿ²"z-,9999999.00"
  17.  
  18.  ÿ½  The ? command prints numeric values according to the format
  19.  ÿ½  specified in the NUMBASE command. NUMBASE may be re-set by other 
  20.  ÿ½  programs or using the Set Number Format menu option. It is set here 
  21.  ÿ½  to the format required for printing the values in this report.
  22.  
  23.  ÿ´ÿ™"CLIENTS"
  24.  
  25.  ÿ½  By default, the Report Generator inserts a full pathname into the
  26.  ÿ½  OPEN FILE command. In the Trial Pack reports, this has been edited
  27.  ÿ½  out, so that the OPEN FILE commands always refer to files in the 
  28.  ÿ½  current directory.
  29.  
  30.  ÿÂ"Report to Printer?","",134,a%
  31.  
  32.  ÿ½  This is a REQUEST type 134. It displays a Windows-style ? dialog
  33.  ÿ½  with three options, Yes, No and Cancel. The default option in type 
  34.  ÿ½  134 is No. The variable a% returns the following values: 
  35.  ÿ½  Yes = 1, No = 2, Cancel = 0.
  36.  
  37.  ÿ¡a%ÿ0ÿpÿ’ÿ^ÿ¡a%ÿ1ÿpÿ¹;
  38.  
  39.  ÿ½  If the response to the dialog is Cancel, this statement terminates 
  40.  ÿ½  the program. If the response is Yes, then it executes a PRINT ;
  41.  ÿ½  which re-directs output to the printer. Otherwise output remains
  42.  ÿ½  directed to the display.
  43.  
  44.  ÿÁNet_Due.CLIENTS
  45.  
  46.  ÿ½  This line specifies the fields on which report functions will 
  47.  ÿ½  operate for the report as a whole, in this case Net_Due.
  48.  
  49.  ÿ}ÿÁ
  50.  ÿ{
  51.  ÿ{@1;"Total Due:";@61;&15ÿlNet_Due.CLIENTS
  52.  ÿ{
  53.  ÿ’ÿÁ
  54.  
  55.  ÿ½  The AFTER REPORT marks the start of the AFTER REPORT section. This
  56.  ÿ½  includes a ? blank line before and after the report SUM for the
  57.  ÿ½  Net_Due. This SUM is printed starting at print position 61 for
  58.  ÿ½  a length of up to 15 characters, preceded by some text at print
  59.  ÿ½  position 1. END REPORT marks the end of an AFTER REPORT or BEFORE
  60.  ÿ½  REPORT section.
  61.  
  62.  ÿŸ
  63.  ÿ{@30;"Amounts Due Report"
  64.  ÿ{
  65.  ÿ’ÿŸ
  66.  
  67.  ÿ½  The HEADING command marks the sart of a HEADING section. This prints
  68.  ÿ½  the text "Amounts Due Report" starting at print position 30, followed
  69.  ÿ½  by a ? blank line. END HEADING marks the end of this section. 
  70.  
  71.  ÿÉ@1;&29Client.CLIENTS;@31;&29Location.CLIENTS;@61;&13Net_Due.CLIENTS
  72.  
  73.  ÿ½  The SELECT command is used to define the DML equivalent of the 
  74.  ÿ½  Fields section of a Query. In this SELECT command you can see the 
  75.  ÿ½  three fields you positioned in the Report Generator SELECT band,
  76.  ÿ½  each with its @ start position and & length.
  77.  
  78.  
  79.